<p class="notice"><%= notice %></p>
<%= form_tag assign_documents_path %>

  <div>
    <%= label_tag "Choose Clients : " %>
    <%= select_tag "client_id", options_for_select(current_employee.get_client.collect{|client| [client.full_name , client.id]}),:include_blank => true ,:class=>"validate[required]" %>
  </div>

  <div>
    <%= label_tag "Choose Document :" %>
    <%= select_tag "document_ids[]", options_for_select(Document.all.collect{|document| [document.title, document.id ]}) , {:multiple => :multiple}%>
  </div>

<br/>

<%= submit_tag "Submit" %>
<script>

		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("form").validationEngine('attach', {validationEventTrigger : false});
		});

</script>




